package com.example.gzysmartcity.repository.model;

import com.example.gzysmartcity.repository.local.StringConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.List;

import org.greenrobot.greendao.annotation.Generated;

@Entity
public class Opinion {
    @Id(autoincrement = true)
    private Long id;
    private long phone;
    private String content;
    private long date;

    @Convert(columnType = String.class, converter = StringConverter.class)
    private List<String> stringList;


    public Opinion(long phone, String content, long date, List<String> stringList) {
        this.phone = phone;
        this.content = content;
        this.date = date;
        this.stringList = stringList;
    }

    @Generated(hash = 1975932997)
    public Opinion() {
    }

    @Generated(hash = 1679689633)
    public Opinion(Long id, long phone, String content, long date,
                   List<String> stringList) {
        this.id = id;
        this.phone = phone;
        this.content = content;
        this.date = date;
        this.stringList = stringList;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getPhone() {
        return this.phone;
    }

    public void setPhone(long phone) {
        this.phone = phone;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<String> getStringList() {
        return this.stringList;
    }

    public void setStringList(List<String> stringList) {
        this.stringList = stringList;
    }

    public long getDate() {
        return this.date;
    }

    public void setDate(long date) {
        this.date = date;
    }


}
